package com.yunying.rispro.util;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * 响应枚举类，用于定义所有返回结果码
 */
@Getter
@AllArgsConstructor
@NoArgsConstructor
public enum JsonResponseStatus {

    SUCCESS(200,"操作成功！"),
    ERROR(500,"内部错误"),
    USERNAME_PASSWORD_EMPTY(100101,"工号或者密码不能为空！"),
    USER_EMPTY(100102,"工号不存在！"),
    PASSWORD_ERROR(100103,"密码错误！"),
    TOKEN_ERROR(100105,"Token令牌失效或已过期！"),
    OPERATE_ERROR(100106,"操作失败！"),
    LOGIN_NULL(100107,"未登录！")
    ;

    // 状态码
    private int code;
    // 状态信息
    private String msg;
}
